<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>所有信息</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
</head>
<body>
<a href="index.jsp">添加留言</a>
<c:forEach items="${guestbookList }" var="guestbook">
<p>
<table width="766" height="211" border="1" bordercolor="#000000" cellpadding="0" cellspacing="5" >
  <tr>
    <td width="139">编号：</td>
    <td width="606">${guestbook.id } </td>
  </tr>
  <tr>
    <td>姓名：</td>
    <td>${guestbook.name}</td>
  </tr>
  <tr>
    <td>邮箱：</td>
    <td>${guestbook.email }</td>
  </tr>
  <tr>
    <td>电话：</td>
    <td>${guestbook.phone }</td>
  </tr>
  <tr>
    <td>标题：</td>
    <td>${guestbook.title }</td>
  </tr>
  <tr>
    <td>内容：</td>
    <td>${guestbook.content}</td>
  </tr>
  <tr>
    <td>时间：</td>
    <td> <fmt:formatDate value="${ guestbook.createdtime}" pattern="yyyy年MM月dd日 HH:mm:ss"/></tr>
</table>
</p>
</c:forEach>

</body>
</html>
